﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MvcShop.Models
{
    [MetadataType(typeof(Product_ImageMetadata))]
    public partial class Product_Image
    {
    }

    public class Product_ImageMetadata
    {
        [Required(ErrorMessage="产品id不能为空.")]
        public int ProductId { get; set; }

        [Required(ErrorMessage = "图片存放路径不能为空.")]
        [StringLength(200,ErrorMessage="图片存放路径过长.")]
        public string ImageAddress { get; set; }
    }
}
